Add readme.txt and finalize algorithm for words