bugfixes and improvements to transit code.
Authored by: mrieser 2009-04-30
Parent: [r6668]
Child: [r6670]