The Atomic Structure of the First Eighteen Elements in the Periodic Table