performance update

* added q - queryCommand that resets the commandblock after executing so the analog output is reset
* added global value direction and Direction class to base.js
* changed how calling method works: they now have to reset the redstone block themself
* minor changes