Added unit test for .doc files. Added example files and removed some
dead code.