Various fixes, addition of example files.