Appending Date to the Logs.

Did the following Changes:
1) “Date” gets appended to the logs.
2) The methods are now modularized .