standardized StateSignal. Dispose() used properly. No more memory leaks.
merged with develop