documentation added, some fixes