Bug Fix and added mass delete function

Removed the extra PHP tag resulting in a page error and added a mass delete function. The function currently is using Joomla 1.5 coding standards. I have added an equivalent, commented out function using Joomla 2.5 coding standards, however this doesn't seem to work.