docs and refactoring manytomany field