fixed bug in score function. 
Fixed separate module for plots
Fixed flag '-plots' for plotting option
Cleaned up code.