Update of the main C file and the readme