Refactor logging statements for consistency and clarity; update environment variable parsing to handle string inputs.