more work on adjustments.  organizing code a little
committing what I have so I can get some feedback before proceeding