update docs : add missing use statement and common method placing

@samsonasik I'd prefer to just put `// ...` here