Code refactor

Code refactor for improve compiling and running speed.
VTK output temporary disabled.