Finished modifications to anagram program