Right of Way at Mark
Watch out coming in to the windward mark on port tack, ESPECIALLY within two boatlengths of it, as it sounds like you did. You can be penalized for making anyone on starboard alter course. That said, it also sounds like you squeaked by.
Hailing is not actually required as much as it actually happens. This is because right-of-way yachts want: 1) to let you know they''re there, in case you weren''t looking 2) to make sure you''re aware of the rule implications of what you''re doing 3)to be polite and sportsmanlike and 3) to intimidate people when they think they know the rules better than their competitors or other racers - or want you to think so. The last group usually hails the loudest.