rename reset() to clear()
fix javadoc warnings