libft replaced and list_dir fixed