Added control loops to Words/ scipts

Program now loops for multiple uses rather than having to rebuild the
dictionaries each time.