Refinements.
Now logging original files.
Merged with log_review branch.
Merged with ui upstream.