preliminary tidy up
comment fixes & tidy ups
more basic tidy up
use readable var name
spelling & comment fixes
more comment additions
add private & public to indicate internal & external functions
minor tidy ups
fix discount calculator
reapply stuff screwed up by 4.5 code being already in trunk
4.5 changes added to trunk quite early on so have been having to mangle code to try to work around that -