fixed some plotting and sentiment calculation bugs