generalized plotting + re-arranged code file
updates
minor updates