malloc troubleshooting feetback added, data is written in file /tmp/ additional troubleshooting and testing already made