dj.kill: fixed bug in applying restrictions and added documentation