New getRomData function and simplified code

New getRomData function and simplified code of directory iteration
Fix: Function comments to single line