added gain node to control output, beautified output