Added .gitignore
Refactored plot command to own function