Made all TS source files use proper imports
Added as many value annotations as was easy