What are the legal ramifications of citing scientific articles for producing commercial software?
The knowledge in the articles is for all to use, what you can't do is to copy text. There is a fine line if the article contains e.g. code listings and you use a fragment, or if you take pseudocode and rewrite it in your favorite programming language, that might be a copyright violation. I very much doubt they'd go after you, in any case.

I'd say that citing the articles is very good practice, somebody (even yourself in a year or so!) trying to understand the code later will thank you.