some little refactoring. documentation fix
update documentation