Added support for method hints and added usage example