Added FTP class, some fixes