Upload examples and fix some bugs.