debug messages and null pointer fix

- additional debug messages for serial data reading
- fix for NullPointerException on startup