add a logger, tidy and add more env vars, moved some things around #2

Merged
david merged 2 commits from develop into main 3 years ago