Gsoc dfr

This branch will contains all the work that Ill be doing during Gsoc.It currently contains the commits required to include collection frequency in the weight.h api.