APISettings: hide buttons if not needed; wrote some comments