more fixes to buffer
added tigher call to readfilesync
added requrie fs