Added sample program with dependencies
Fixed issues handling dependencies