Add more horizontal axes

Fixed bug with passing std::vector by value rather than by reference
and updates addAxis() function to put more than one axis.