Ks commit 10

Was made:
log into file;
merging files with equals genres;
writing unsave changes on exit with removing duplicate files;
generalized input;
some small corrections.