Algorithm and main program structure. Some elements remain unimplemented.