added an error message for incorrect arguments
added an error message for incorrect arguments and fixed some pattern match erros
added in some of the image data needed for the examples.