renames cpp file and function names, adds .h file