Added/adding a propper logging system.
Added/adding propper logging system. Has the ability to keep an internal
log and/or output the file to disk - keeping the last log as a backup.