activity documentation, fix of compilation issues