Adding type property
Adding Document type support to sync manager
Tweaking exception messages