finaly exercise is complete, c-code stil a mess ... next time more structure ith headerfiles has to be applied ...