use Path instead of ~str; change crate type to lib; update demos