Major re-write; add ability to have multiple thermostats; fix settings