Refoactoring kerror interface and debug messages

- Added compilation time configurable debugging options
- Renamed KERRROR_LOG to KERROR_INFO