Beginners guide to adding a tab and a button to Revit using the API. Code can be found on my Github https://github.com/dannysbentley/MyTest/blob/master/App.cs
Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.