Added comments for variables and functions

Added all the comments and variables for functions