Renamed fuctions to match googles gjslint convention. Fixed gjslint errors. Fixed private accessed members, by making them public.