added possibility to display required and optional params; added sample parameters for button