Fixes flaw when array() attribute is used in a model, array diff should use keys
Fixed typos
Removed duplicated array key
Fixed PHPDoc
Clean up classes and write comments