plotting rearranged
input check updated
minor updates