improve logging
add Ticketautomat class and test