I am making an app and i just recently stumbled across the config.lua file, where the the width is 320px and height 480px(or something like that). I want my app to be versatile, so that you could play it on all devices. Should i change these to
width = display.contentWidth,
height = display.contentHeight,
No. I recommended you read about Content Scaling.