refactored makefile to support subdirectories
removed unused files