Updated functionality to be more proper, included error checking in prints and inits. Updated Header file with test functions. Updated Makefile to allow for library as well as test compilation independently.