added middleware.  exposed object as top module.  version 0.0.2 bump.