Function write checked and running. Functions readSpaceUri() and readSpaceFolder() corrected