Added optional parameter to print function, and now handle some vector
printing