started on API documentation
fixed documentation typo