Added a default value for is_config_file and removed occurrences of it
delete code duplication
move code from inotifyCaller to fileEvents
fileEvents: file_open function splitted into several sub-functions
filesEvents: Extracted stop_files_list creation from file_closed
fileEvents: Extracted override_filesize and override_last_offset out of file_closed