update dependencies, improve example