Made compatible with TS 0.9
fixes error TS1015: Parameter cannot have question mark and initializer
Merge pull request #2 from tkrugg/master

Made compatible with TS 0.9