Refactor readFile to match nodejs File System native interface
Fix compare on bigint lib/tools/bigint library
Refactor writeFile to match nodejs File System native interface