added possibility to directly save to file shannon distribution plots