Added swig generation functions for #297
Added unittesting load_cpp_files function. Closes #297.