Disable ftp extension
Disable text extension, move functions to Document class