cleaned up code and added function to add commas to elixir costs displayed