more edits to paper
made code not use pbc for shifting images