Main function created.

Step "creating main" from
http://www.osdever.net/bkerndev/Docs/creatingmain.htm .