Updating some code, Finishing application logging to global folder and tmp log in home directory