Small change in stash type definition, slight relocation of samples (into api) and definition of MALAStash