Added "delete" functionality

This is my first pull request. I made only a few changes, but the diffs are entire files.