conforming with 1.0 changes
removing warnings
simpler ctor
examples