Fixed some bugs

Fixed infinite loop.
Fixed array initialization.
Fixed logger writing everything to one line.
Fixed issue where literally every file on the computer was opened and
locked by the JVM. (Wow I'm dumb)
Fixed issue where filenames were being formatted incorrectly.

Tried to fix issue with logger not indenting properly.