general refactor - behavior more than acceptable
cleaning code and adding dat.gui interface