Created IDEA project
Fixed a few unidiomatic conditions