made render() method more robust, by raising an exception, if template could not be included. added general try/catch block around the ob_* funcitons