Added comments (every function now has a comment)