updated all type declarations and starting to modify source code to accept new sys_config structure