An indictment is an accusation in writing found and presented by a grand jury, legally convoked and sworn, to the court in which it is impaneled, charging that a person therein named has done some act, or been guilty of some omission, which, by law, is a public offense, punishable on indictment. Code Iowa 1880,