code implementation and instruction stage 11/19

Work in progress toward finalization.