added SCP functions
Fixed comments