rayheader.h: added more comments and tidied up more