fix SyntaxErrors
remove extra device settings parameter
update example for new device settings param
fix steps calculation in the right place
factor out steps calculation
move SweepStep trimming into SweepStep class