Switched to IDEA, fixed a few warnings