Add readme and licence
Move main.go to example.go and add comments