fixed SDK min version required by airplane mode check
clean up
fixed error message appearing at the end of the file