La enorme torre del Ribat, Monastir