Removed unused methods. Suppressed Warnings for mkdir and file delete. Fixed potential null pointer.