Added some new features like choosing the index and type.
More formatting code and added the totals to the view