Updating some of the main most useful functions and updating the phpdoc comments