empty window initialization code

Added template code for initializing an empty window with window
procedure callback.
added some comments to window creation code
added msdn information on creating a window

to serve as a quick reference to window flow
more comments, some error checking and meta info
rename hwnd to hWnd