Merge pull request #5 from veeranjaneyulus/master

Removed a few bugs in GLM and elsewhere
moved c_lib code into R_package
merging