changed value 8->4 for stack fixing in fun_to_int
splitted system_main into more files (macros, task)