Added delete command, now deletes stuff when told to.  Added some docs and rearranged some code.