Cleaned up finddocs() method.