couple of bug fixes and memory fixes
Merge branch 'master' of github.com:austiniam/GPLib