Creating directories and files now works properly on android.

Fixed/implemented everything so that it works on android. Windows filemanager still needs to be changed.
Also now always opens the files as read/write