addded sample 0002 and fixed some bugs