updated API to be cleaner; index page now provides a quick reference to it