Added some comments (before other people started looking at our code, hopefully... :D