added some comments, but really i need to spend some time on documentation later. For now, I am going to the medieval fair