Adding setMask, getMask, setCharRepresentation, getCharRepresentation, and fixing some bugs
Adding getMask and setMask example