Redone Some Code: New Error Logs implemtented. Imporved Log writing
method.