Added support for closing tags using cmd-alt-.
Updated package.json
Refactored code to avoid duplications.
Added specs.
:memo: documented the code.