Improved logging

Log to file, also changed format