Added missing shelljs require
convert tabs to spaces
Added update command tests
Lot of changes at update command