added output logging and changed rider constructor a bit