added support for multiple lines on the same axis and a new input argument to adjust figure size
cleaned up code slightly from previous commit