Lots of debugging. Looks like there is a discrepency in placing atoms. Will look at later.