Consistent function naming and corrected documentation