Added a few docstrings.
Implemented a check whether all dependencies of a target are met.