remove long_description
change new_resource.dn to new_resource.distinguished_name
improve logic readability