Wrote the bbsimapi.cpp, now to compile