document scripts a bit, fix permissions