Fix import statements
Fix parameters passed at command line
Fix reverse movement after step-size halve