Merge pull request #4 from samdoshi/duration

duration API changes
add accessors for PmDeviceInfo input & output