cleaned up CustomMarker by removing unused code and increasing encapsulation, and added javadocs for it