Finalized program.
 + made both draw at the same time in split mode.
 + added comments