Added listener for preference changes. Renamed command to messageOut. Limited number of lines in the log viewer.