Updated code comments and header docs.