Modified module schema to have additional dependencies array in dependencies. Clean up and introduce recurrsive approach in next enhancmenet