Linked toolbar button to gateway when a button is clicked.
Added javadoc comments to methods.