Add more documentation to lib.h
Update .gitignore for ignore documentation directory