Simplified the API.
Updated README to reflect most recent API changes.