add source code, fix bugs to run GL2