Updated corpus functions

fvm.create groups was not accepting more than one grouping variable;
corpus.append was also broken