Makefile updated to include installing the lib for running tests
Fixed various and many bugs, Bleh..
Adding a mainstream test.. and it works.