core functions documented and moved from maincore.php to the new includes/core_functions_include.php