small changes to findfile and analysis script