Added typescript interface files
Initial implementation in TypeScript
Reworking to use observables instead of globals
It compiles again!

Time to debug.
Fixed issues with creating the output stream.
Working version with typescript