Added demo code and more notes