added factors package. preliminary implementation for hepspec retrieval