fix some warning
add makefile
add a test script
update README