[refactoring] sorted module imports alphabetically
[refactoring] put parse function at top to be more clean code like
[refactoring] renamed elementParser to elementStartParser

this should be more consisten with elementEndParser
[refactoring] extracted logic into findKeyAndValueAttributes function
[refactoring] made ensureTagsParserExists function name more specific