added print function
Merge branch 'code' of github.com:kyzhai/SMURF into code