Make mpl-graph import-friendly

Use __name__ = "__main__" foo so that it doesn't run all the code on an
import
Adding test suite

Also updated CHANGELOG to reflect latest changes toward implementing an
extensive testing suite
Add .gitignore file
Merge branch 'tests' into dev

Code coverage now at 37%