Removed text classification from recognized arrow heads.
Used new iteration constructs and added some doc strings.