least squares module still incomplete
 fixups
Merge pull request #5 from mohit1007/master

more fixups