fix some minor issues
some code decoration
phpdoc
HttpException
minor typos