Made autogenerated headers precompiled, fixed function detection in hook handler (grabs from stack of CallFunction), added mapping info to readme