Fix more bugs in post proc, and clean it up more.
Merge pull request #440 from nZEDb/dev

Fix more bugs in post proc, and clean it up more.