Covered snippet inserter with tests on temporary folders.
Added IntelliJ's dictionary.
Test code-style fixes.
Extracted document generation into an object.