What is the purpose of Hebrew scriptures?

(not necessarily in order of importance:)

To record events; to teach all manner of wisdom, knowledge, behavior, morals, attitudes, and laws; to speak about and teach about the Creator; and to provide portents and information about the future, the soul, the upper worlds and the afterlife.