Added processCites library function.
Moved library stubs to library.