To print the total energy you can add a "TotalEnergy" block in the Script Generator.
When you run an optimization, the optimized geometry is stored in the NC file (if you don't make any changes to the script), and you can extract it from there in VNL (typically it will be the gID001 configuration), and then export to Python etc (the CIF export format is not really developed yet in ATK).