Various improvements.
Added appropriate -lstdc++ flag to linker.
Renamed some things.
Initial commit