Fixed a bug and small errors that caused Valgrind warnings.
Fixed a bug and small errors that caused Valgrind warnings.

Chiru/NVE_Simulation,Chiru/NVE_Simulation,Chiru/NVE_Simulation,Chiru/NVE_Simulation,Chiru/NVE_Simulation,Chiru/NVE_Simulation