Routines and contants now organized for A03E01. Still needs to be  tested