whitespace issues fixed, email changed, removed usage of date and
cat /proc/version
reformatted all the double quotes
removed all raw string literals as they're not being used
enabled the script to be pulled in as a library by separating out
the main code
added better function and class description comment blocks
reduced most line lengths to below 80 chars
a few extra line truncations