reduced memory usage of main script and improved readability of helpers, updated last change date in readme