Remove the activity_id

Fixes #61
rename activity_id to activity_target_id
move privacy_level variable declarations outside the loop