Reworked XML input parser. Added modules for reading with StAX.