Fixed formatting and some functions, while adding updateadmin.