Fixed some issues with placement of electrons in the shells.