fixed bugs in documentation functions
removed FIXME for bugs related to documentationy