Renamed some functions.
Added function names in documentation.