Extra functionality added to Luke's code

Added a couple more options to code Luke emailed me that was ahead of this branch.  Included is a combination of Luke's and my own code.
- added getlen
- added feedback to mockmode
- removed extra whitespace
- made error messaging a little more consistent