Fixes and implemented the remainder of the tasks related to Document entity service implementation.