Added a DELETE operation, and cleaned up the code a little. Added a new test script also