added dependencies
added debug statements
aded debug statements