fixes to make it compile when warnings are errors
use poti to define and create hierarchy
remove debug messages
fix type declaration (parent should be null when root)
error messages
make function public (necessary on handlers when dealing with hostfile)
new handlers to create a process hierarchy in cooperation with the one from hostfile
if hostfile is provided, create a different kind of hierarchy based on it
process type is now simply P
new functions to declare state and link types, only once
declare state and link types