Minor changes.
Added reset button and check button + fixed some bugs