Reorganize files and create a makefile.