made logic changes to updatecommand
Merge branch 'master' of https://github.com/cs2103aug2014-w09-1j/main