Added logs to the main module.

Added logs to the main module and also added a function that gets the
system time in milliseconds: getTime(). Can extern it anywhere to use.