Updated libs, fixed gradle idea, removed warnings
Conditions order explained