Added IntelliJ out directory to ignore file.
Fixed printing bug.