Merge pull request #1 from jimmylai/setup

add Makefile
add unit test cases