finished importing things from old cpp project. The code compiles but hasn't been tested