- cleanup c code
- add callback result codes