Added cDvar , Updated cState

Added cDvar, Updated cState TODO: write up a sweet little documentation
:D