added customizable log file name and extension; added removal of outdated log files with possibility to use a custom number of days for keeping files; added a new line to a log message for better readability