Bluetooth SPI comms is now functional, added BTLE RTOS task, fixed bug in min/max