Comments implemented.

Removed PHP dependency completely.
Indentation typo fixed.