add a Corpus object with basic check and repair function