Fixed some pointer bugs. Added option to selectively enable/disable function inlining.