Update the readme

This updates the readme to the current code/documentation. I also removed trailing whitespace (using `gofmt`).