added error handler and __call() method to handle deprecated methods (will issue an error with link to API reference)