Tidied up convert.R and added a SETUP file

Added comments, pulled out hard-coded variable values into a
configuration section at top of file.  Please read the SETUP.markdown
first.  Thanks! Anne