Move global code to a main function.
Oops, file was missing.
Ignore temporary test files.
More things todo