Functions, Permissions

Adds functions.
Adds  permission  checks  for  source  and  target
locations.

 On branch master

 Changes to be committed:
	modified:   backsum