-Corrected listener initialization bugs (can't write to log before
initializing variables);
-Fixed attachment and dettachment log messages to display newlines;
-Fixed magnetometer log output not including magnetometer readings;