made code in main.cpp more human-readable, among other changes
ambient temp