added input options
added fix
fixed insert bugs
edited code
added delete option