added basic trip ticket import code, refactoring to DRY code and keep things readable