removed not used classses
converted to utf8 replaced from var to protected
added permission accessor for method. format indent.