added new function getAssignedVars(). Updated comma support
Added some comma functionality