added load function to examples
rewrote logic of autoloading charts from config