Updated to include installation of packages
Changed the height calculations of elements. Passed ~30 1-turn trial runs. Bug may still exist, see notes.