Add better error checking removing extra cruft output
Clean up indexing further by allowing path or glob and only getting xml files