Added gain selection and 5v output on rj45