fixed a bunch of stuff, added enough code to call a C compiled function with parameters on the stack