Abstract filename reading so you don't have to open every single file! Geez… getNextFilename added. Also, fixed spacing and formatting.