additions to the updated version

Added the code so that at the end of strncpy a null terminator is added. Also, chanced the die_wo_conn to a regular die, and if there is a connection dieConn is used.