Added ptr constuctor to life and costs. Added threading selection to cfg.