added functions to delete/enabled/disable; added error reporting, etc...