Changed Document.php to provide more accurate functionality concerning dependencies. And added skeleton for unit test