1. Refomat the code style
2. Attempt to support the environment variables.