Added .gitignore
Reorganized script into class