add receiveRequest function
Fix responseToBuffer and renaim it to responseToString. Fix fileToString