format clean
added some debug information
refactored the cos_syscall code according to cdecl convention