Fixed validation code in StringVariable.
Fixed several bugs and added features to sample.
Fixed bug in sample.
Use ConcurrentDictionary for callbacks.
Updated to v0.4.1.