Cleanup documentation a bit, add some, and added System_GetState
Cleanup documentation a bit, add some, and added System_GetState

* Also made private individual System_SetState and System_GetState
  functions only to be used within System_SetState and System_GetState
  respectively.
* Removed a debug fmt.Println

losinggeneration/hge,losinggeneration/hge-go,losinggeneration/hge,losinggeneration/hge-go