refactored manytomany field and added more docs on it