README.md: add usage
add Makefile
complete main functionalities