moved all code into header file
updated Makefiles
renamed erase_all to clear