Add missing "dependency" and move header comment to the top.
Comments and small style changes.