added accessors and conformed to cpplint
added accessors and implementations