Baseline for CE2

Changes:
- Changed codes so that contents are saved after any command that make
changes to content
- Moved readFile to execute at every command

Fixes:
- Made fixes as recommended by code reviewers
- Magic strings and numbers reduced
- Added comments to saveContent