Implemented non-local perp. GF

There are segmentation faults. Bugfixing needed.