updates presstrends api code

fixes #38