updated readme and examples. Added hidelegend flag