changed code to write .cube file, works when output is in Bohr