Improve FTP connection and create class for resposible for JSON operations