Added copy line up and down function and adjusted formatting