added -k to listspaces to export only space keys and password file option