Fixed #5 - all everything should be now tested.

Added tests for _indexOfEndTag(), _parseDOM(), parseString() and
makeDoubleLinked().
#10: Added docstrings to all functions without proper docstrings.
#4: Refactored everything that could be.