Bulk save functionality (setItems method) + other minor fixes

No new tests, existing tests work
not sure I understand this one, what do you mean by "new line for the contents of the function"