Tidy up code and output

* Report input parameters.
* Reformat some output data.
* Reduce line length of long lines (80 char maximum is useful).
* Introduce spaces aroundd binary ops (+, / etc)
  but not uniary ops (so "a = -1" or "a = 0 - 1").
* Introduce spaces between fucntion arguments,
  but not array indicies.
* Use vertical whitespace to seperate sections.