Added constructor to load directly from model file