Clarifying comments
Moved code around for clarity

Temperature, densification, and plastic strain portions were moved to
the end of the code