First working version.
Updated documentation.