Added version to print-out.
Added ranks to output.
Fixed merge conflicts.