fixed Math.sign not being in Chrome and keyboard input; added parameter display