Added reset button and removed a lot of unused stuff.