fix typo in lib; add demo.rs