additional comments and included plot classifier

Added more comments to improve the readability of the code.