Add a makefile and fix some lint problems