documentation
changed publicity of some variables