Fixes issues seen on raspberry pi

- Increase kernel memory area and pt area
- Fixes bunch of null pointer issues
- Adds some optional debug logging