Added comments in the main method.