Issue #18: Refactor the entry point and configuration saving and loading