Removed custom exception classes.

* Revised code using custom exception classes.
* `core.Molecule` attributes are now stored in two lists, to preserve
  input order.