updated README.md, rearranged code between utility and encode files