Merge pull request #139 from chdemko/master

Prepare for refactoring
Aesthetic style
Refactor context io
Refactor context io
[skip-ci] Documentation