Fixed method in VarTools and added more validate-methods