Documentation and better logging.
More documentation