Refactoring

1. Use YAML as a configuration file
2. Support multiple sessions