added doc and last fixes