fixed example
modified module api
first draft complete