added getVariable function to get variables from Smartdashboard