Prevent zoom on iPad. Add comments and reorganize code.