Moved code to the src/ directory, minor changes to API documentation.