Reduced poll-time to 100ms and exported it to a variable
Added didReload flag to prevent popping up loads of dialogs if a lot of
files were modfied