Added initial version of script
Added a file of test cases.

Eventually these will be turned into a series of Python
unit tests, but for now they're just lines in a text
file that ought to be double checked every time
the script is changed.
Wrote the first draft of the README