a few changes and additions.

code styling was changed.