Fixed the root file problem

Fixed: Only superusers can now write/delete/execute root files (also fixed the serialization).