Added API documentation to drive basic architecture.