Feature ngmin

Reopening PR for #160 -- added tests