typescript version publishable
ignore generated files
uglify typescript version
more code cleanup