Added new corpusdocs module; small bug fixes in init.py