Added a rotating logging mechanism
Changed max log file size to something more reasonable