Auto-generate library file
Small bug fix and gitignore change