some docu added and some code cleaning done