Added comments for every line of code