add annotations, minification and fix linting errors