added comments show what calls what and dependence on which c librars.