modified makefile to create directories
Changed *.h files to *.cpp