Fixes for TypeScript services (IScriptSnapshot reimplemented), error marks, lots of comments all around.