bug fixed, example added to ./examples
bug fixed, makefile modified