Error checking, added APP, ARR, APP +ARR, Inverterd warning + additional tweaks.