More Code Commenting

Commenting more of the functions, makings @todo and @script notations.