add comments and getname method