changed documentation, several fixes