First crack at a port from the avc site.
Version 0.1

Cleaned up main code and wrote a simple example.
Linking to example