added time to print the current time and date

also started commenting some parts of the code