Fixed several bugs with modifying courses.

stations are now numbered correctly, data is stored correctly and
should be displayed in order.