Fixed a few bugs. Now actually compiles without errors. To do: Add better light logic. Add better bootup logic.
Added non-blockng button and serial logic. Improved the boot sequence.
Removing debug code, cleaning up description, improving comments etc.
fixed a minor scope bug on returnValue