added self executing function for good practice
added delete element
tidied up the content update code
DELETE elements works by moving to new table now

this will make stepping back through changes really easy