Added constants file.
Preliminary support for non file-based corpus source.