Fixed stuff, and renamed word_agent.py. This change is for loading the module in an interactive python console.