Largely updated debugging, reorganized older code, began work on fixing
Altar generation.