Remove unused variable/function
Add API documentation

Closes #4