closed all ???
finished doc functions
fixed minor issues