Fixed inflating method by passing the parent and leaving a comment why it is done.
Also commiting some files with removed unused imports and unused fields.