Ketubah

Firstly, I thank you for your weekly article which enriches our weekend, and we look forward to it all week!
Could you please explain what exactly is a ketubah; is it a document of sorts or is it part of the actual act of the Jewish wedding? Why do some people hang it on their wall?