My code for interfacing with Mendeley, a work in progress ...