iOS: refactor
iOS: refactor
iOS: code refactoring
iOS: code refactor
iOS: userEditable should be YES by default
iOS: fix daily ESM algorithm, add some tests.