This is a classic case of what happens with most spearo's - fortunately things turned out for the better. You spotter did the right thing in getting to you and ditching your weight belt. That is the positive aspects of this.
Reality is, all your buddy really needed to do was remove your mask and lightly blow on your face - the receptors in the face being cooled by a breath are enough to begin the process of recovery from a blackout. And the fact that you were able to recount in pretty good detail the conditions by which this occurred says alot for your presence of mind. I think the universe handed you an opportunity to let others know how important it is to dive within one's limits, have a spotter and to have proper first aid/cpr training.
Lastly - if you can, take a proper freediving course so that you can go through the proper procedures of shallow water blackout rescue. I wrote an article specifically on this very topic - the article can be found
here
Glad to hear you are ok...