Added initial API documentation...application state does not entirely match the documentation yet