half & full wave rectification added (button)