See also this quick guide and these examples.
Ready to run code in ANSI-C, java and perl. This code is under an open source style license and comes without warranty.