added tests for all the functions
fixes to ld and now completes core tests
added unit testing and fixed paths