merge the gif-defns.h
restructure the project and repaire some bugs