Added support for method hints and added usage example. Closes #3