Scoring and example

The scoring function is now a parameter. I also added an example
directory where I moved the sample corpus as well as provided an
example.