Fixed inspector not being injected properly into empty documents.
Refactored the documentation and expanded the examples.