use xC compatible boolean type definition from stdbool_xc.h
remove unused parameters from internal_config.h
simplify some function implementations