added interface and base class for vars commands

#1