updated copyright
refactored makefile and added tests