Added mention of the API to the README.

Also some trailing whitespace removal.