Bug-59-preivous-and-next-word

@john-hu This is about bug-59. Please Help me review this one. Thank you~
initVariables