SNIa model selection code added (make it work, please!)