Cleanup headers and whitespace
Add error command and update debug messages
Prevent unknown key messages
Add alloc0 and new0 functions