Many bug fixes. Also, deleting works now.

Like, actually though