added functionalities

quit, file write, char deletion
misc. updates