Fixed 'length' typo

This is going to break all the saved projects, as it will change the
expected string in the ini files, from 'time_of_flight_lenght' to
'time_of_flight_length'
Directly run in bash fix
Format error fix
Deprecated warning fix