Added options to layout nodes horizontal/vertical.