Converted markers.cpp to C++ class instead of C-style structs and methods.