Shortened lines

while registering permissions and economy
Adjusted examples to new code