#90 Move fields out from Command.java

Affected fields:
ConfirmCommand.dateId
SearchCommand.keyword
ViewCommand.viewRange, .viewAll, .completed
#90 Add type casting in ParserTest to fix compilation error
Indentation / code style fix for Command classes
Merge branch 'pattern_refactor'