changed some internal modifiers to public or private from all files