Fixes #6 - now saves to log file

saves all sensor output and mode changes