update main file in package.json and add lib to gitirgore