Replaced rectifier with linear output and changed initialisation