Either Front end gain - preamp.

or abandon this code and get googling - i'm sure there are tons of other examples.

George