updated to allow passing of custom renderer
added some tests for custom renderers
Merge pull request #8 from tybruffy/master

Custom Renderer Fix for #6