added source code and pdf images