code refactoring for better readability
Merge branch 'master' of https://github.com/juhaniniinimaa/htmlparser