Solved a bug that crashes EdgeGenerator
Added some helpful scripts