improved store-method: checking for valid hash-reference
added list-method