Added secure network connection class which uses SSL to encrypt data, Also changed functions to pass by reference