#17 #9 minor changes in WriteMethods and added method count and added attribute count (need to be implemented)