Fixed a minor bug with State class redefining __ROOT__ incorrectly if it is used independently. Added callback parameters to callback methods in API Wrappers.