Captured new interface, but haven't implemented malloc yet.
made malloc available so it compiles, but it doesn nothing.
Fixed a few bugs with prototype decl and return value.