File IO

Re-added protected file IO to lua