Fix base directory and add new feature to addWord from hash of languages