edit now cleans and checks for erros
Merge pull request #10 from drewguild/DG/edit

edit now cleans and checks for erros