More commenting and refactoring. Store_offerings could be refactored further.