Commented the methods of the code.