Commented Code

Added comments to functions and Classes.