Add created
Refactored indent
Add ready hook
Add attached
Add detached hook