added source code and example pages