Removed Log-data, fixed formatting of code