Wait for asynchronous result sets to finish for map(), allow model to be null
Add unit tests for data model methods
Better describe sorting in API docs