updated sphdem example. still a work in progress