TREFF: Finish jointreff.php