Corrected error in perpendicular non-local GF

Also implemented possibility of plotting the polefunction in
nonlocal.cpp and updated test.cpp.