add linreg script
add beginning of lossfxn