refactor mallet code; remove unneeded data files