improved tests

add Makefile
add main
Merge pull request #7 from eddelbuettel/feature/improved-tests

improved tests