Refactor ready and initXXX methods
Improve documentation