Format codes
Fix incorrect retuen-value when operating with n=1
Add remove-member's function