added the error plot script