Updated parameter order

Some parameters were in the order they had been when “height” was used
instead of “length”. They are now in the correct order
Finished the "findCommandsToSend()" method

Although this is untested, it should work.