Split in single files.
Added mouse events.
Added reset.