Fixing problems, updating docs and examples