Throw error if dependency is not found
Changed syntax, similar to angular now

Simpler syntax with some magic to guess the dependencies.