All dimensions working now. Fixed scrambling bug that sometimes added rotations with a depth of 0.
added css and dom structure