Added function to output results in Latex. Added functionality to specify collection.