Fixing build
Fixed incorrect integer comparison
Multiple fixes and safeguards
Fixed some bit and bolts mostly gui glitches

Fixed the padding transform
Fixed the randomcase transform