Add godoc comments and stuff to the KIST code.