refactored.
added command to get status of current working copy.