Added: generation of tsc declarations.
minor cleanups