Fixed bugs and added compilation and minification