warning fixes, minified and compressed version