Changes to correct errors added new code for anagram

minor changes