Altered corpus loading code to use resources API. Fixes #8.