I was trying to edit this question, just to fix up grammar, punctuation, spelling etc. when this error occurred:
It looks like your post is mostly code; please add some more details.
That seems reasonable and everything, so how did the question even get asked? Why does Stack Overflow let someone post a question that is "mostly code", but not allow me improving details given by the OP? Shouldn't Stack Overflow stop the question from being asked in the first place?