Added GetNameSize, GetSelfNameSize
Removed superfluous "length" parameters in the functions