added a VarError constructor to Vars, modified some types of the comparison functions