AddVertical function, fixed a small bug in toString function