The star cluster Messier 18 and its surroundings