switched to IntelliJ IDEA and fixing some of its warnings