Added comments and fixed bug in unused dependency checker