Updated poem parser to handle directories and normal text files (not just xml).