updated readme and added serial check for write in server.js