refactored to a newable object, and updated the examples
Merge pull request #17 from dbouwman/feature/14-cedar-obj

refactored to a newable object, and updated the examples