Enhances code style.
Removes redundant PHP code from the HTML generation.
Updates readme for 1.7. Fixes #7.