added minify functionary, and started unit test.