Added some fixes in LPU, logging option in simulation file, output visualization and cleaned up the neighbor finding code