Remove static from bool_decoder functions, add c file