Added javadoc, changed behavior when reseting.