added get and append functions; added mode based set and get; added setAll and appendAll