Refactor IO code
Clean up Makefile
Add to-dos to README
Add licence