Chanbe app, refactor constants.
Add tests and refactor codes.