address review comments:

- coding style fixes
address review comment

- move getbboxinfo and add comment