Add observer also on res 'close' event and complete doc.
Ignore Webstom files
Add example.