adds readme examples as lib docs
adds readme examples as lib docs

fixes a few things so they now run as tests as well. this will provide
some content for the crate's entry page on docs.rs.

perrier1034/rust-autograd