moved parsing function to own module, added exception handling for xml parsing, changed parsing function to return atbat trees rather than pitch trees