new pem format for saving and restoring keys
removed the old file creation