individual layer wrap, fixed wrap

also put the glitches into glitches.py