Code readability and improved logging.
Rearrange the prepare function to avoid circular imports.
Bump version to 0.2.