Fixes indexing bug in reduced matrix

The loop was inexing over the number of fixed coils, not the number of moveable.  Filing and issue to change the number of fixed and moveable coils to variables to make the code more readable and usable.