Main program

Still very rough.