Cleaned up internal and API documentation

Closes #76