Sync with LPC

There are lots of problem with the Zinv procedure. Need more work on it