code cleanup
code cleanup; completed plot5