Updated to the delete_doc method
Adding call for ActiveRecord save
merged in integration branch.
adding reduce to create view
changing version
merged with master