update .gitignore to ignore .idea and add APACHE LICENSE 2.0