Finished the depedency example, fixed some small bugs.