added .gitignore and make it library