A few of us recently had a lenghty discussion about improvements to the currently available Lev-Mar routines.
David Thomson incorporated some of the ideas into the example available on his web site:
http://www.originalcode.com/occdl.html
Look For "Gaussian Peak Fit", see if this helps you get some ideas.