fixed typo with WndProc
fixed more typos

due to code being copied from another project (why reinvent the
wheel...again?)
application now creates a basic win32 window