added updates for vars support on destroyVar and destroyVars, updated to PSR-2 spec