Completed the comments on the file to fully understand input and output