add Makefile

remove shell scripts and just use a makefile, while I'm here move the
test in src folder to not pollute the root directory.