Added a delete registration feature. Fixed a few small bugs.