Adding Add_member and Remove_member functions and some adaptations

Adding Add_member and Remove_member functions and some adaptations in the main() function. Related to Issue #2 (partially resolves the issue).