Added checkhome switch
changed checkhome default to True and fixed get_filenames test