Minor fixes.
Add the readme, and make the API a bit cleaner.