Fixed problem with file name in saving. Added indicator of authorization.