minor cleanups to rotation calculation
more cleanup
prep work on ore processing block