Fixed remaining bugs in .c . Updated ReadMe to include these fixes. Tested and works fine. */