fixed examples
Updated docs, minor bugfixes