added delete function, cleaned up uneeded files