changes to preliminary code, notes on my thoughts.