Add documentation and fix function naming