fixed minor emoticon bug
fixed problem with loop (commented borrowed code) and gave attribution