Made some updates, fixed formatting bug in delete() function.