Make script more modular
Add GPLv2 license
Update README