remove unused imports
replaced duplicated string literal by constant
refactor method flow
change processing flow in convertToHacklace(..)
update documentation