add version info apicall & example
fixes #4