Fixed some code, Enhanced the example code.