Put reader/writer/engine into sub-namespaces and improved tests.
Code style.
Implemented console 'clone' command.