Update ods and collect_data

ods added encoder writing
collect_data added current calculation