Fixed some warnings & format

plus ignore .idea and bin dirs