more work on stringify method

* added tests for spaces argument
* testing many more corner cases
* fixed lots of problems
Documentation and changelog