Created .gitignore
Refactored figure creation and drawing