Fixed bug that resulted in delta being NA, also enhanced plotting