Miscellaneous changes

Modularized some repetitive calculations
Decoupled leg thickness from perimeter width
Added alignment nubs
Replaced L-shaped legs with hollow square legs