Fix up decoder method. Add inverse info to docstrings.
Fix a couple of bugs. Split gaussian helpers in two.
Add scipy dependence.
Add test.