Redesigned the cvar system and added documentation