added a nice C wrapper library with example