minor corrections, function to subset and include ids: subject, activity

Signed-off-by: cderamond <cderamond@gmail.com>