A few bug fixes

Some bug fixes, changes default time for scanning files to 5 seconds