tests
Minor cleanup
Completely reworked optimization (optimization not limited to preferred stripe)
Proper weights
Minor