Updates .gitignore and moves dependencies section for library and sample.