fixed formatting and added a file utilty class