Fixed program crash when editing an empty file.
Added Network API, and locked those pesky APIs in there permanently.