Updated README.
C files auto discovery for client.
Refactoring. Different categories of code moved to separate files.