Added README.md and refactored API slightly.