get everything ready before you apply, Jpeg are fine, Airline ticket, passport photo page, passport style portrait of yoursel, copy of 1st night stay in the country, you can also save your progess and return to the application should you need to.
Local immigration office and pay for the extension, it's more than the overstay fine, but no mark in the passport which could cause problems in the future.