Move tests for main etc. to start of file.
Initial work on PE 75.