Established dimensions as parameters, made more of the elements into modules, added some looping to reuse dimensions and positions.