Minor updates, add iPython notebook for documentation and testing.