Bugfixes after testing using pylint
Updated version of text utilities