changed routes to include API
reorganised files for sinatra. created index.erb