Did initial testing for all functions

Also changed makefile to root directory