Version 1.1.2

Minor refactoring.
Updated documentation.