corrected union-find bug, fixed paths, new classifier, better error reporting