cleaned up code. fixed makefile