Initial GUI and random chop error fix

GUI has 'Chop' and 'Export' buttons, successive chops will degrade the
export

In last version, a rearrange would randomly try to access an
out-of-index slice from the chopped array. This has now been fixed and
rearranges will work every time. Their desired result, however, will be
fixed soon.