Expand tabs.
Strip trailing whitespace.
Fix up whitespace in 1.0 as well.
Use heredocs rather than an echo every line.
Merge pull request #3 from ab/master

Various mostly pointless style edits