fixed example
switched to a class based more generalized structure.
improved modularity, fixed shared library inclusion, switched to lists of tuples for args
README update