Change code language to c from c++, move client functions from main
Merge branch 'sergiokiselev-master'