Moved atoms into a layer.
Added starmap gradients.