Documented functions module and renamed it main_functions