More cleaning of unused functions
Errors raised in getFiles are not reaching Exceptions in Checkfor...so moved logging calls to getFiles function.