State: 
 - (internal) use flags to store the active state instead of a bool.
 - setTempState(...) and getTempState() added.
Exporter/ExporterTools:
 - tempStates are not exported.