A codeblocks example was added, a bug was found in the example

A codeblocks example was added, the bugs resides in the main function taked from the previous main.c of src folder, this need to be modified in the future for better compatbility.