holmes: a program for target factor analysis