fixes due to TypeScript 0.9.5 beta upgrade
refactor some constants
improved help based on new commands