add port number definition for inch and mach
add variable for generation and return pid for child
change function prototype and standardize messages