Occurrence deletion now removes associated meta data. Also fixed some phpdoc.