added test data output and plot. Basic model done.