add cvar (console variable) implementation and testing