removed debugger statement
code style and backporting some jinput stuff etc from 3.1