modified jasonify
added a few docstrings
more fixes.