Set error property.
remove unused variable
Fixed bug, remove the last element in the array
Vadim added I commit notification on main thread.
Add prepareForLoad and performLoading methods to IDPModel
Add setState: with notifications to IDPModel
Perform notifications on main thread in IDPModel