Fixed typo
Removed unneeded code.
Fix for compatibility with PHP 5.2.
re #91 : Remove 'render' template function.
Code cleanup