Lots of jsdocs updates in the State class to make it more clear what the various properties and methods do.