- remove insane heap walk and kernel loading code; clean up style and calling conventions