a simple doctest has been implemented.  can make this better over time. but it works.  will/should run doctest each time before commit from now on.