Improved error handling and debug traces

Centralized startTime used as reference for
debug traces with time stamp. This variable
is now shared between modules, and only
initialized once.

Added possibility to configure SPI speed