Update State.java

Added Javadoc to state.