add small demo code in main
move files to src/
add makefile