Fix the refresh parameter, coding style improvements
Make the return type of the render function consistent
More type information and comments
New version 2013-09-17