class/module member definitions

revised it for the maximal convenience and clarity.
methods and data/fields are treated differently,
as they are actually complementatry concepts.
instance fields can only appear inside methods,
while methods must be defined on the ground level
of a class/module scope.