Renamed params to parameters per current de facto spec.
Fixed pep8 issues.