Added documentation to State