Link to the page we talk about
The community wiki is not always updated by us because it is intended that the community updates the pages (forum login and password can be used to login at wiki). I often edit and create pages that I consider helpful and I occasionally update these pages. I think this how-to was written by a user who is nto active here anymore. So if you see that the whole thing works with your changes, then please feel free to edit the page, and finally you can even edit the version badge on top to 0.8, if it isn't set to this already!
"iInstanceNumber" <-- I think this is just a helper variable for you if you want to debug how many consoles you created. I don't see it used anywhere so you could remove it, you are right. It can come handy to have this variable, so you can be sure you have exactly "1" window (or maybe exactly "2", or whatever number you were expecting)
Regarding your includes - I do not know. Test it and see if it compiles and then edit it for later users if something was wrong and you fixed it. If you get a an error that you can't fix, post it here and we will help