added research section
fixed function names in C code