Actually did some programming.

Uses C++ now instead of C.