A comprehensive computer simulation of slit pores. A complete map of behaviours for open and closed end pores. Dependence of molecular layering and clustering on surface affinity. Possible hysteresis in closed end pores with weak surfaces and low temperatures. Microscopic origin of the hysteresis in pores.