added unscaled losses method to model, added more logging in scripts