add withManager function
add basic documentation about withManager