Basic structure of program laid out

Everything but the actual data processing has been written.