updated word-lookup controller

put comments