Added matplotlib functionality
Quit functionality