move convert_using_r_function to headers
register stack_trace
added internal.cpp
remove unused get_function_ptr