Moving cleaing of input to submit function
Merge branch 'master' into gh-pages