Some clean up, ans_shstr() added, tokenize function added.