Cleaning up the code

Made some small changes to clean up the code. Used ruby idioms in some
places. Also, used a regex to better match signal data in case the message has
stuff like double blank spaces.
Merge pull request #8 from daviddavis/master

Cleaning up the code