full design functionality

compression removes comments, regex corrections/optimization