Fixed the icons
Removed commented code
Changed the way the documents are deleted. Now using the _deleted field.