a huge remake of fighures

moving also figures to message passing , changing the abstract figure
functions , merging the more and the eat functions into one , also
mergins some another almost duplicated code into one