organized code into demarcated sections
removed older version of optimization implementation
maybe more compact in-memory representation
notes