Added graph of error, and print output vector