containing function pointers. FT will now compile again with C++.
Adding basic input parameter checking for exported functions.