fix multiple output parameters support, extend documentation