Implementation of reset button as well as major update of comments.