added logic to support nested loops; cleaned up label handling
adding 1) temperature logic in fireware, API, and ompiler; 2) updating button logic to function correctly in firmware.