Fix unitialized variable usage and memory leaks in command line and ide.cpp
Fixed memory leak caused by destroyObj not working
Made the generated main file more user friendly.
Finished main.cpp auto expansion
Fixed an index out of bound in genetareMainFile()
Finished TestDiagramScene class
Fixed memory leaks in SyntaxHighLighter NewProject