SerialMonitor with logging to text file

The following modified modified SerialMonitor class can save the received data to a file
http://www.arduino.pastebin.com/f2a17ffe4
This has been tested under Linux with 0017.