Added an extra line so we know what min and max are
Fixed Bid / Ask being backwards, and added in a bit more error handling