CLOUDIFY-2073 added docstrings and changed method order