Clean up source tree and add Makefiles