first pass at merging sms$serial analysis updates
cosmetics: remove trailing whitespace
comment tweaks and code formatting
update TODO