Added oldcode file containing old alignment (snap) code.
Started working on grid alignment.