Added proper argument parsing to mido-play and reorganized the code.