Migrated char_result to use bind interface
Added -Wall to compile flags and fixed a bunch of warnings