format single line comments correctly
remove trailing whitespace
reformatting of inline comments
else construct formatting
docblock comments params
fixed some errors with code formatting
fixed some errors with code formatting