updated energy.rb with sinatra path
edited energy.rb