added second arg param to simpleMPD, added api method to demo