Developed an IPython notebook showing how to use the repository.

Cleaned up a lot of code, and added an example in example/ that shows how to use the repository.