Adding variables documentation and removing mode stuff