Fixes + improvements to script
Add CONTRIBUTING.md
Ignore idea files