parser.py: added 'split_phrases' function and used it, added comments,
etc.