added beginnings of delete function, added capacity param to console interface