added links to nbviewer and github. Also made a few tweaks.